package com.ffcs.crmd.tsp.admin.service;

import java.util.List;

import com.ffcs.crmd.tsp.client.core.TspClient;
import com.ffcs.crmd.tsp.common.exception.TspException;

public interface ITspClientService {
    
    /**
     * 功能说明:
     * 
     * @param clusterName
     * @param serverAddr
     * @throws TspException 
     */
    void add(String clusterName, String serverAddr) throws TspException;
    
    
    /**
     * 功能说明:
     * 
     * @param clusterName
     * @param serverAddr
     */
    void update(String clusterName, String serverAddr);
    
    
    /**
     * 
     * 功能说明:
     * 
     * @param String
     * @throws TspException 
     */
    void remove(String String) throws TspException;

    /**
     * 功能说明:
     * 
     * @param clusterName
     * @return
     */
    TspClient getClient(String clusterName);


    /**
     * 功能说明:
     * 
     * @return
     */
    List<TspClient> getAllClient();
    
}
